@extends('public.admin.layout')
@section('header')
    站点设置
@endsection
@section('content')

          
<form class="form-horizontal" action="{{route('admin.site.update')}}" method="POST">
    @csrf
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="site_name" name="site_name" placeholder="请输入网站名称" value='{{$site->site_name}}'/>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站标题</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="site_title" name="site_title" placeholder="请输入网站标题" value='{{$site->site_title}}'/>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站地址</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="site_url" name="site_url" placeholder="请输入网站地址"  value='{{$site->site_url}}'/>
                    </div>
                </div>
                
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站关键词</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="site_keywords" name="site_keywords" placeholder="请输入网站关键词"  value='{{$site->site_keywords}}'/>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站描述</label>
                    <div class="col-sm-10">
                        <textarea class="form-control"  placeholder="请输入网站描述" id="site_des" name="site_des">{{$site->site_des}}</textarea>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">网站版权</label>
                    <div class="col-sm-10">
                        <textarea class="form-control" placeholder="请输入底部描述" id="site_copyright" name="site_copyright">{{$site->site_copyright}}</textarea>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">流量统计</label>
                    <div class="col-sm-10">
                        <textarea class="form-control" placeholder="请输入流量统计代码" id="site_count" name="site_count">{{$site->site_count}}</textarea>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">栏目链接规则</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="urlrewrite_cls" name="urlrewrite_cls" placeholder="请输入栏目链接规则"  value='{{$site->urlrewrite_cls}}'/>
            
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">小说链接规则</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="urlrewrite_book" name="urlrewrite_book" placeholder="请输入小说链接规则"  value='{{$site->urlrewrite_book}}'/>
            
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">内容链接规则</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  id="urlrewrite_con" name="urlrewrite_con" placeholder="请输入内容链接规则"  value='{{$site->urlrewrite_con}}'/>
            
                    </div>
                </div>
                
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">说明</label>
                    <div class="col-sm-10">
                    %siteurl% 代表 网站地址 http://www.xk.cc/ </br>
                    %cls_id% 代表 栏目ID </br>
                    %cls_py% 代表 栏目栏目拼音 </br>
                    %book_id% 代表 小说的ID</br>
                    %book_py% 代表 小说的拼音</br>
                    %post_id% 代表 内容的ID</br>
                    %post_py% 代表 内容的拼音</br>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">开启随机热词功能</label>
                    <div class="col-sm-10">
                    <label class="checkbox inline">
                        <input type="radio" id="hotkeyopen" name="hotkeyopen" value="1" class="fancy"
                        @if ($site->hotkeyopen===1)
                        checked="checked" 
                        @endif
                        />是
                    </label>
                    <label class="checkbox inline">
                        <input type="radio" id="hotkeyopen" name="hotkeyopen" value="0" class="fancy" 
                        @if ($site->hotkeyopen===0)
                        checked="checked"
                        @endif
                        /> 否
                    </label>	
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">热词功能说明</label>
                    <div class="col-sm-10">
                    如果开启下面的 “<B>热词搜索</B>” 填写上也无效 </br>
                    系统会自己在数据库里随机小说或者作者组成热词搜索</br>
                    </div>
                </div>

                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">热词搜索</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  id="hotkey" name="hotkey" placeholder="请输入搜索热词"  value='{{$site->hotkey}}'/>
            
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="inputEmail">搜索链接</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"  id="searchurl" name="searchurl" placeholder="请输入搜索链接"  value='{{$site->searchurl}}'/>
            
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-10">
                    <button type="submit" class="btn btn-info pull-left">保存</button>
                    </div>
                </div>
                
            </form>
        
      
@endsection